//
//  Common.swift
//  MyWB
//
//  Created by 李成万 on 16/6/25.
//  Copyright © 2016年 李成万. All rights reserved.
//

import UIKit
/// 切换根控制器的通知名称
let SwitchRootVc = "SwitchRootVc"
/// 发微博时候删除的通知名称
let deleteTextView = "deleteTextView"
/// 输入表情的通知名称
let EmotionShow = "EmotionShow"

/*
App Key：1316360343
App Secret：c308e368c77dab0060def8b7cf58dcf1

*/
let APPKEY = "1316360343"
let APPSECRET = "c308e368c77dab0060def8b7cf58dcf1"
let HUIDIAOYE = "http://www.baidu.com"


let SCREENW = UIScreen.mainScreen().bounds.size.width
let SCREENH = UIScreen.mainScreen().bounds.size.height


let ThemeColor = UIColor.orangeColor()


func RGB(red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor{
    
    return UIColor(red: red / 255, green: green / 255, blue: blue / 255, alpha: 1)
    
}

func randomColor() -> UIColor{
    
    let r = CGFloat( random() % 256 )
    let g = CGFloat( random() % 256 )
    let b = CGFloat( random() % 256 )

    
    
    return RGB(r, green: g, blue: b)
}